<%@ page language="java" contentType="text/html; charset=utf-8"  
import="com.brother.model.*,java.util.*" pageEncoding="utf-8"%>
<jsp:useBean id="service" class="com.brother.service.InterestPointService"></jsp:useBean>
<%
com.brother.model.Customer loginUser = (com.brother.model.Customer)session.getAttribute(com.brother.Constants.LOGIN_SESSTION_NAME);
if(loginUser ==null){
	return;
}
String id = request.getParameter("id");
String text = request.getParameter("text");
String lat = request.getParameter("lat");
String lng = request.getParameter("lng");
service.addOrUpdate(id, loginUser.getUserid()+"", Float.parseFloat(lat), Float.parseFloat(lng), text);

out.write("ok");

%><%
com.brother.database.DataBase.closeThreadConnection();
%>